package cn.wolfcode.luowowo.comment.domain;

import lombok.Getter;
import lombok.Setter;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * 景点评论
 */
@Getter
@Setter
@Document("scenic_comment")
public class ScenicComment implements Serializable {
    public static final int SCENIC_COMMENT_TYPE_COMMENT = 0; //普通评论
    public static final int SCENIC_COMMENT_TYPE = 1; //评论的评论

    @Id
    private String id; // MongoDB默认id
    private Long scenicId; // 景点id
    private String scenicTitle; // 景点标题
    private String englishName; // 景点明细英文名

    private  Integer rank;//景点整体评分
    private  Integer scene_rank;//风光评分
    private  Integer feature_rank;//特色评分
    private  Integer service_rank;//服务评分
    private  String picture;

    private Long userId; // 用户id
    private String username; // 用户名
    private int level; // 用户等级
    private String headUrl; // 用户头像

    private int type = SCENIC_COMMENT_TYPE_COMMENT; //评论类别
    private Date createTime;    //创建时间
    private String comment;      //评论内容

    private int thumbupnum;     //点赞数
    private List<Long> thumbuplist = new ArrayList<>();
    private List<ScenicComment> refComment;  //关联的评论
}
